﻿<#include "../public/header.html">

<div data-role="page" id="main" >
    <div data-role="header" data-position="fixed" >
        <h1>准考证信息</h1>
    </div>

    <div data-role="content"  data-theme="a">

        <label for="project_reality_result">实操成绩:</label>
        <input type="text" name="project_reality_result" id="project_reality_result" value="${po.project_reality_result!}">

        <label for="project_theory_result">理论成绩:</label>
        <input type="text" name="project_theory_result" id="project_theory_result" value="${po.project_theory_result!}">

        <label for="project_card_code">证书编号:</label>
        <input type="text" name="project_card_code" id="project_card_code" value="${po.project_card_code!}">

        <label for="project_synthesis_result" class="select">综合评定:</label>
        <select name="project_synthesis_result" id="project_synthesis_result">
             <option   value="">请选择</option>
        </select>

        <label for="project_is_card" class="select">是否有证:</label>
        <select name="project_is_card" id="project_is_card">
             <option   value="">请选择</option>
        </select>

        <label for="project_is_get_card" class="select">取证情况:</label>
        <select name="project_is_get_card" id="project_is_get_card">
             <option   value="">请选择</option>
        </select>

    </div>

</div>
    <script>

        $(function(){

            project_synthesis_result();
            project_is_card();
            project_is_get_card();

        });

        function project_synthesis_result(){
            $.ajax({
                type:"get",
                url:"${root!}mobile/index/sys_pa_code?table=bk_project_student&field=project_synthesis_result",
                dataType:"JSON",
                success:function(data){
                    buld_select("project_synthesis_result",data,"${(po.project_synthesis_result!)}");
                }
            });
        }
        function project_is_card(){
            $.ajax({
                type:"get",
                url:"${root!}mobile/index/sys_pa_code?table=bk_student&field=project_is_card",
                dataType:"JSON",
                success:function(data){
                    buld_select("project_is_card",data,"${(po.project_is_card!)}");
                }
            });
        }
        function project_is_get_card(){
            $.ajax({
                type:"get",
                url:"mobile/index/sys_pa_code?table=bk_student&field=project_is_get_card",
                dataType:"JSON",
                success:function(data){
                    buld_select("project_is_get_card",data,"${(po.project_is_get_card!)}");
                }
            });
        }

        function buld_select(id,data,seleced){
            var str = "";
            $.each(data,function(i,item){
                if(seleced*1.0==item.id){
                    $("#"+id+"-button span").text(item.name);
                    str +='<option value="'+item.id+'" selected>'+item.name+'</option>'
                }else{
                    str +='<option value="'+item.id+'">'+item.name+'</option>'
                }
            });

            $("#"+id).append(str);
        }

    </script>

<#include "../public/footer.html">